package com.ssy.lingxi.member.merchant.model.bo;

import java.io.Serializable;
import java.util.Objects;

/**
 * 会员注册资料 - 如果是select、radio、checkbox类型，记录了所选择的标签
 * @author 万宁
 * @version 2.0.0
 * @date 2021-05-08
 */
public class MemberDetailLabelBO implements Serializable {
    private static final long serialVersionUID = 7297825576505173383L;

    public MemberDetailLabelBO() {
    }

    public MemberDetailLabelBO(Long labelId, String labelValue) {
        this.labelId = labelId;
        this.labelValue = labelValue;
    }

    /**
     * MemberConfigLabelDO的id
     */
    private Long labelId;

    /**
     * 标签的名称
     */
    private String labelValue;

    public Long getLabelId() {
        return labelId;
    }

    public void setLabelId(Long labelId) {
        this.labelId = labelId;
    }

    public String getLabelValue() {
        return labelValue;
    }

    public void setLabelValue(String labelValue) {
        this.labelValue = labelValue;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        MemberDetailLabelBO that = (MemberDetailLabelBO) o;
        return labelId.equals(that.labelId) &&
                labelValue.equals(that.labelValue);
    }

    @Override
    public int hashCode() {
        return Objects.hash(labelId, labelValue);
    }
}
